<?php /* Template_ 2.2.4 2011/07/06 13:59:31 E:\PHP\www\sagapo\_DATA\template_\default\admin\board\category.html 000002647 */ 
$TPL_list_1=empty($TPL_VAR["list"])||!is_array($TPL_VAR["list"])?0:count($TPL_VAR["list"]);?>
<h2 class="<?php echo $TPL_VAR["module"]?>">
	<?php echo $TPL_VAR["bid"]?> > 카테고리 관리
	<button type="button" class="add" onclick="move('<?php echo $TPL_VAR["CFG"]->PATH->WWWADMIN?>/<?php echo $TPL_VAR["module"]?>/categoryAdd/<?php echo $TPL_VAR["bid"]?>')">추가</button>
</h2>
<section class="default">
	<script>
		$(function() {
			$(".table_delete").click(function(){
				if(!confirm("정말로 삭제하시겠습니까?")) return false;
			});
			
		});
	</script>
	<table class="table">
		<caption>
			카테고리 설정
		</caption>
		<colgroup>
			<col class="t_chk" />
			<col />
			<col class="t_board_count" />
			<col class="t_board_count" />
			<col class="t_date" />
			<col class="t_etc" />
		</colgroup>
		<thead>
			<tr>
				<th scope="col"><input type="checkbox" name="chk[]" /></th>
				<th scope="col">카테고리명</th>
				<th scope="col">정렬값</th>
				<th scope="col">총게시물</th>
				<th scope="col">생성일</th>
				<th scope="col">비고</th>
			</tr>
		</thead>
		<tbody>
<?php if($TPL_VAR["list"]){?>
<?php if($TPL_list_1){foreach($TPL_VAR["list"] as $TPL_V1){?>
			<tr>
				<td class="txt_center"><input type="checkbox" name="chk[]" /></td>
				<td>
					<?php echo $TPL_V1->bc_name?>

				</td>
				<td class="txt_center"><?php echo $TPL_V1->bc_order?></td>
				<td class="txt_center"><?php echo $TPL_V1->bc_count?></td>
				<td class="txt_center"><?php echo $TPL_V1->date?></td>
				<td class="txt_center">
					<a href="<?php echo $TPL_VAR["action"]?>/categoryModify/<?php echo $TPL_V1->ba_id?>/<?php echo $TPL_V1->bc_seq?>">
						<img src="<?php echo $TPL_VAR["CFG"]->PATH->IMAGE?>/icons/pencil.png" alt="수정" />
					</a>
<?php if($TPL_V1->bc_delete!= 0){?>
					&nbsp;
					<a href="<?php echo $TPL_VAR["action"]?>/doCategoryDelete/<?php echo $TPL_V1->ba_id?>/<?php echo $TPL_V1->bc_seq?>">
						<img src="<?php echo $TPL_VAR["CFG"]->PATH->IMAGE?>/icons/delete.png" alt="삭제" class="table_delete" />
					</a>
<?php }?>
				</td>
			</tr>
<?php }}?>
<?php }else{?>
			<tr>
				<td colspan="6" class="txt_center no_data">
					등록된 카테고리가 없습니다. <a href="<?php echo $TPL_VAR["CFG"]->PATH->WWWADMIN?>/<?php echo $TPL_VAR["module"]?>/categoryAdd/<?php echo $TPL_VAR["bid"]?>" class="icon_add_btn">추가</a>
				</td>
			</tr>
<?php }?>
		</tbody>
	</table>
</section>